#include "Heap.h"
void Test()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 1);
	HeapPush(&hp, 3);
	HeapPush(&hp, 6);
	HeapPush(&hp, 34);
	HeapPush(&hp, 12);
	HeapPush(&hp, 28);
	HeapPush(&hp, 9);
	HeapPush(&hp, 44);
	printf("%d\n", HeapSize(&hp));
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n");
	printf("%d\n", HeapSize(&hp));
	HeapDestroy(&hp);
}
int main()
{
	Test();
	return 0;
}











